package cn.com.dhcc.ddi.monitor.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.monitor.vo.TaskSuccessCountVo;

public class TaskSuccessCountRowWapper implements RowMapper<TaskSuccessCountVo>{

	@Override
	public TaskSuccessCountVo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		TaskSuccessCountVo vo = new TaskSuccessCountVo();
		vo.setCount(rs.getString("count"));
		vo.setHour(rs.getString("hour"));
		return vo;
	}

}
